
import javax.xml.ws.Endpoint;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import net.ruby.WebServiceFromWSDL;
import org.me.calculator.CalculatorWSServiceLocator;
import org.me.calculator.client.CalculatorWS;
import org.me.calculator.client.CalculatorWSService;

/**
 *
 * @author Ruby
 */
public class NewClass {

    public static void main(String[] args) {
//        Endpoint.publish("http://localhost:8080/CalculatorApp/CalculatorWSService", new org.me.calculator.client.ObjectFactory());
        CalculatorWSService service = new CalculatorWSService();
        //net.ruby.WebServiceFromWSDL service = new WebServiceFromWSDL();
        CalculatorWS ws = service.getCalculatorWSPort();
        System.out.println(ws.plus(2, 3));
    }
}
